| Beskrivning |
|---|
| This macro rotates the current view by 90° to the left. Only works if you are in Top view Versions makro : 01.00 Datum senaste ändring : 2010-11-17 FreeCAD-versionen : All Ladda ner : Macro_Rotate_View_view_90_Degrees Författare : Yorik |
| Författare |
| Yorik |
| Ladda ner |
| Macro_Rotate_View_view_90_Degrees |
| länkar |
| Makros recept Så här installerar du makron Hur man anpassar verktygsfält |
| Makroversion |
| 01.00 |
| Datum senaste ändring |
| 2010-11-17 |
| FreeCAD Version(s) |
| All |
| Standard genväg |
| None |
| Se även |
| Macro_Rotate_ViewAxonometric Macro Rotate View Free |
Only works if you are in Top view: XY (top)
Macro_Rotate_View_90_Degrees.FCMacro
import math from pivy import coin cam = Gui.ActiveDocument.ActiveView.getCameraNode() rot = coin.SbRotation() rot.setValue(coin.SbVec3f(0,0,1),math.pi/2) nrot = cam.orientation.getValue() * rot cam.orientation = nrot